#ifndef H264_DECODER_H
#define H264_DECODER_H
#include <QThread>
#include "AVCommon.h"


class H264_Decoder:public QThread,public AVDecodeBase
{
    Q_OBJECT
public:
    H264_Decoder();
    ~H264_Decoder();//构析函数
    void Clear();
    void put_packet();//解码队列
    int Open(const AVCodecParameters* codecParamer);//打开编码器
    inline bool isFull(){return false;};//解码队列是否存满

protected:
    void Close();//关闭解码器
    virtual void run() override;

private:
    bool quit_ = false; //停止解码线程

};

#endif // H264_DECODER_H
